namespace Rsdn.Janus.Core.Extensibility
{
    using System.Xml;

    public class ExtensionLoadInfo
    {
        private string path;
        private XmlElement descriptionNode;

        public ExtensionLoadInfo(string path, XmlElement descriptionNode)
        {
            this.path = path;
            this.descriptionNode = descriptionNode;
        }

        public string ExtensionFullName
        {
            get
            {
                return System.IO.Path.Combine(path, descriptionNode.InnerText);
            }
        }

        public string Path
        {
            get { return path; }
        }

        public XmlElement DescriptionNode
        {
            get { return descriptionNode; }
        }
    }
}